home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / contrib / campbell / makefile.ult < prev    next >
Encoding:
Makefile  |  1992-04-27  |  3.3 KB  |  105 lines

  1. #
  2. # GPLOTLIB Makefile for Ultrix
  3. #
  4. # Note: Ultrix standard cc compiler has a bug with static structure
  5. # initializations [such as struct ts {int x;} tb[]={{100*0.32}};]
  6. # and so this makefile uses vcc instead.  If this isn't possible,
  7. # and you get "line xx: illegal initialization", then you'll have
  8. # to go into the .trm include file and compute all the floating point
  9. # defines with a calculator.
  10.  
  11.  
  12. # directory where to install executables on 'make install'
  13. DEST=/usr/local/lib
  14. # directory for installing man page on 'make man_install'
  15. # Well, man page needs to be generated out of source code for library
  16. # somehow...
  17. MANDEST=/usr/man/manl
  18.  
  19. # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
  20. # -DBZERO if you need to use bzero() (another BSD feature) instead of memset()
  21. # -DNOCOPY if you don't have a memcpy() by any name
  22. # -O if you trust your compiler's optimizer
  23. CC = cc 
  24.  
  25. CFLAGS = -DBCOPY -DBZERO -O #-gx 
  26.  
  27. # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
  28. # -DAED         AED 512 and AED 767
  29. # -DAPOLLO      Apollo workstations
  30. # -DBITGRAPH    BBN BitGraph
  31. # -DDXY800A     Roland DXY800A plotter
  32. # -DEPSON               Epson LX-800, Star NL-10, NX-1000 and lots of others
  33. # -DFIG                 Fig graphics language (requires object.h from TransFig)
  34. # -DHP2648              HP2648, HP2647
  35. # -DHP26        HP2623A and maybe others
  36. # -DHP75        HP7580, and probably other HPs
  37. # -DHPGL                HP7475 and (hopefully) lots of others
  38. # -DHPLJET              HP Laserjet
  39. # -DIMAGEN      Imagen laser printers (300dpi) (requires -Iterm also)
  40. # -DIRIS4D      IRIS4D series computer
  41. # -DKERMIT      MS-Kermit Tektronix 4010 emulator
  42. # -DLATEX       LATEX picture environment
  43. # -DPOSTSCRIPT  Postscript
  44. # -DPROPRINTER  IBM Proprinter
  45. # -DQMS         QMS/QUIC laserprinter (Talaris 1200 and others)
  46. # -DREGIS       ReGis graphics (vt125, vt220, vt240, Gigis...)
  47. # -DSELANAR     Selanar
  48. # -DTEK         Tektronix 4010, and probably others
  49. # -DSUN         Sun Microsystems Workstation
  50. # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
  51. # -DUNIXPLOT    unixplot
  52. # -DV384        Vectrix 384 and tandy color printer
  53.  
  54. # -DEPSON removed just before HP2648.
  55.  
  56. TERMFLAGS =  -I../term -DAED -DBITGRAPH -DDXY800A -DHP2648 \
  57.     -DHP26 -DHP75 -DHPGL -DHPLJET -DIMAGEN -DKERMIT -DLATEX \
  58.     -DPOSTSCRIPT -DPROPRINTER -DQMS -DREGIS -DSELANAR -DTEK \
  59.     -DUNIXPLOT -DV384
  60.  
  61. # These object files form the gplotlib.ar library
  62. OBJS = gsr.o gterm.o 
  63.  
  64. # -lplot iff you have -DUNIXPLOT
  65. # -lsuntool -lsunwindow -lpixrect  iff you have -DSUN
  66. # -lgl_s if IRIS4D
  67. LIBS = -lm -lplot
  68.  
  69. bar: $(OBJS) bar.o
  70.     vcc bar.o $(OBJS) $(LIBS) -o bar
  71.  
  72. bars: $(OBJS) bars.o
  73.     vcc bars.o $(OBJS) $(LIBS) -o bar
  74.  
  75. pie: $(OBJS) pie.o
  76.     vcc pie.o $(OBJ) $(LIBS) -o bar
  77.  
  78. all:    bar pie
  79.  
  80. gterm.o: ../term/*.trm gterm.c
  81.     vcc $(CFLAGS) $(TERMFLAGS) -c gterm.c
  82.  
  83. $(OBJS): gtplot.h gsr.h
  84.  
  85. clean:
  86.     rm -f *.o *~ *.*_doc 
  87.  
  88. spotless:
  89.     rm -f *.o *~ TAGS bar bars pie cpr docu *.*_doc gplotlib.doc
  90.  
  91. doc:    docu cpr intro.doc gsr.c gsr.h gterm.c gtplot.h
  92.     docu <gsr.c >gsr.c_doc
  93.     docu <gsr.h >gsr.h_doc
  94.     docu <gterm.c >gterm.c_doc
  95.     docu <gtplot.h >gtplot.h_doc
  96.     cpr -ac -C -PBACKSPACE \
  97.        intro.doc gterm.c_doc gtplot.h_doc gsr.c_doc gsr.h_doc >gplotlib.doc
  98.     rm -f gsr.c_doc gsr.h_doc gterm.c_doc gtplot.h_doc
  99.  
  100. docu:    docu.c
  101.     cc docu.c -o docu
  102.  
  103. cpr:    cpr.c
  104.     cc cpr.c -o cpr
  105.